import systemInfo from './systemInfo.js'
let ifFileManage = false;
let fs;
let userDataPath = '';
// #ifdef MP-WEIXIN
ifFileManage = uni.canIUse('getFileSystemManager') && systemInfo.platform !== "devtools"
ifFileManage = systemInfo.system.toLowerCase().indexOf('ios') === -1
// #endif
// #ifdef MP-ALIPAY
// ifFileManage = uni.canIUse('getFileSystemManager')
// #endif
if(ifFileManage){
	fs = uni.getFileSystemManager()
	// #ifdef MP-WEIXIN
	userDataPath = wx.env.USER_DATA_PATH
	// #endif
	// #ifdef MP-ALIPAY
	userDataPath = my.env.USER_DATA_PATH
	// #endif
}
export default {
	ifFileManage,fs,userDataPath
}